import {createRouter, createWebHashHistory} from "vue-router"

const routes = [
    {
        path: "/",
        redirect: "/home"
    },
    {
        path: "/login",
        component:()=>import("../views/Login.vue")
    },
    {
        path:"/home",
        component: ()=> import("../views/Home.vue"),
        children:[
            {
                path:"/home/user",
                component: ()=> import("../views/User.vue"),
            }
        ]
    }
];

const router = createRouter({
    routes: routes,
    history: createWebHashHistory()
})

export default router;
